#include "shm.hpp"

int main()
{
    sleep(1);
    shm wshm(key,"User");
    char* addr = (char*)wshm.getAddr();
    int cnt = 5;
    while(cnt--)
    {
        const char* ch = "hello cqy";
        strcpy(addr,ch);
        sleep(1);
    }
    return 0;
}